package dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @program: sporadic
 * @description:
 * @author: LHD   QQ:1727865856
 * @create: 2019-11-01 11:17
 **/
@Data
public class OrderDTO {
    private String orderId;
    private Integer orderUserId;
    //优惠金额
    private BigDecimal orderTotal;
    private String orderDesk;
    //餐桌id
    private Integer orderDeskId;
    //餐桌名
    private String orderDeskName;
    private String orderRemark;
    private Integer orderStatus;
    private Integer orderMerchantId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date orderCreateTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date orderEndTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date orderPayTime;
    private Integer orderPayWay;
    private Integer orderPayStatus;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date orderUpdateTime;
    private BigDecimal orderPrice;
    private BigDecimal orderActualAmount;
    //订单详情
    private List<OrderDetailsDTO> orderDetails;
}
